@extends('admin.layout.base')
@section('title', '订单列表页')
<style>
    /*输入框*/
    .gssb{
        width: 230px;
        float: left;
    }
    /*搜索*/
    #gssa{
        width: 65px;
        float: left;
    }
    /*表单距离*/
    .gssc{
        margin-top: -55px;
    }
    /*修改按钮*/
    .xg{
        margin-left: 10px;
    }
    /*查看商品详情*/
    .ckspxq{
        margin-left: 38px;
    }
    /*居中*/
    .jz{
        text-align: center;
    }
    /*商品详情页*/
    /*详情表*/
    .q{
        float: left;
        margin-top: 30px;
        margin-left: 30px;
    }
    ul div{
        list-style: none;
        /*border: 1px solid #ccc;*/
        width: 800px;
        margin-bottom: 2px;
        line-height:30px;
        font-size: 16px;

    }
    .a{
        border-radius: 10px 10px 0px 0px;
        font-size: 22px;
        color: #DD4B39;
        /*background-color: #3C8DBC;*/
    }
    .b{
        border-radius: 0px 0px 10px 10px;
        margin-top: -20px;
    }
    .c{
        margin-left: 100px;
    }
    .sai{
        border: none;
    }
    img{
        /*margin-left: -100px;*/
    }
    span{
        /*color: #ccc;*/
    }
    y{
        margin-left: 170px;
    }

</style>
@section('content')
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>订单修改页</h1>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <!-- Default panel contents -->
                    <div class="panel-heading">订单信息</div>
                    <div class="panel-body">
                        <dl class="dl-horizontal">
                            <dt>订单号</dt>
                            <dd>{{ $order->order_number }}</dd>
                            <dt>下单时间</dt>
                            <dd>{{ $order->order_time }}</dd>
                            <dt>订单状态</dt>
                            <dd>
                                @if ($order->order_status == 1 )
                                已支付
                                @elseif ($s->order_status == 0 )
                                待付款
                                @elseif  ($s->order_status == -1 )
                                已取消
                                @endif
                            </dd>
                            <dt>订单号</dt>
                            <dd>{{ $order->order_number }}</dd>
                            <dt>收件人姓名</dt>
                            <dd>
                                {{ $order->order_name }}
                            </dd>
                            <dt>配送人姓名</dt>
                            <dd>
                                {{ $order->order_name }}
                            </dd>
                            <dt>收件人姓名</dt>
                            <dd>
                                {{ $order->order_name }}
                            </dd>
                            <dt>收件人电话</dt>
                            <dd>
                                {{ $order->order_tel }}
                            </dd>
                            <dt>收货地址</dt>
                            <dd>
                                {{ $order->order_address }}
                            </dd>
                        </dl>
                    </div>
                    <!-- Table -->
                    <table class="table table-bordered table-condensed">
                        <tr>
                            <th>商品图片</th>
                            <th>商品名称</th>
                            <th>购买数量</th>
                            <th>操作</th>
                        </tr>
                        @foreach($shop as $s)
                        <tr>
                            <td>
                                <img src="{{ $s->goods_thumb }}" class="thumbnail" height="80">
                            </td>
                            <td>{{ $s->order_goodsname }}</td>
                            <td>{{ $s->order_goodsnumber }}</td>
                            <td>
                                @if($s->order_status == 2 )
                                <a href="#">
                                    [已发货]
                                </a>
                                @else
                                <a href="{{ url("/admin/xiugai/{$s->id}/status") }}">
                                    [发货]
                                </a>
                                @endif
                            </td>
                        </tr>
                        @endforeach
                    </table>
                    <div class="panel-footer">
                        <button class="btn btn-default" onclick="history.back(-1)">返回</button>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection
@section('pluginscript')
<!-- Slimscroll -->
<script src="{{ asset('/dist/admin/plugins/slimScroll/jquery.slimscroll.min.js') }}"></script>
<!-- FastClick -->
<script src="{{ asset('/dist/admin/plugins/fastclick/fastclick.js') }}"></script>
<script>
$(function() {
    $('.action-edit').click(function() {
        $('.consignee-add').slideToggle();
    });

    $(".cancel").click(function() {
        $(".consignee-add").slideUp("normal");
    });
});
</script>
<script src="{{ asset('/dist/home/js/mall_monitor.js') }}"></script>
@endsection